import Home from '../pages/Home'
import Category from '../pages/Category'
import MyTests from '../pages/MyTests'
import Cart from '../pages/Cart'
import Mine from '../pages/Mine'
import Tabbar from '../components/Tabbar'
const routes=[
   {
     path:'/',
     redirect:'/home',
     meta:{
         isNav:false
     }
   },
   {
      path:'/home',
      name:"home",
      components:{
        main:Home,
        tabbar:Tabbar
      },
      meta:{
          navTitle:"首页",
          isNav:true,
          icon:'icon-men'          
      }
   },
   {
       path: '/Category',
       name:"category",
       components:{
           main:Category,
           tabbar:Tabbar
       },
       meta: {
           navTitle:"分类",
           isNav: true,
           icon:'icon-guizi'
       }
   },
   {
       path:'/Mytests',
       name:"mytest",
       components:{
          main:MyTests,
          tabbar:Tabbar
       },
       meta: {
           navTitle:"品味",
           isNav: true,
           icon: 'icon-zhangxuyangcansaitubiao-'
       }
   },
   {
       path:'Cart',
       name:"cart",
       components:{
           main:Cart,
           tabbar:Tabbar
       },
       meta: {
           navTitle:"购物车",
           isNav: true,
           icon:'icon-icon-test'
       }
   },
   {
       path:'/Mine',
       name:'mine',
       components:{
           main:Mine,
           tabbar:Tabbar
       },
       meta: {
           navTitle:"个人",
           isNav: true,
           icon:'icon-gerensvg'

       }
   }
]
export default routes;